import request from '@/utils/request'

// 查询减排路径记录列表
export function listEmissionPathLog(query) {
  return request({
    url: '/carbon/emissionPathLog/list',
    method: 'get',
    params: query
  })
}

// 查询减排路径记录详细
export function getEmissionPathLog(id) {
  return request({
    url: '/carbon/emissionPathLog/' + id,
    method: 'get'
  })
}

// 新增减排路径记录
export function addEmissionPathLog(data) {
  return request({
    url: '/carbon/emissionPathLog',
    method: 'post',
    data: data
  })
}

// 修改减排路径记录
export function updateEmissionPathLog(data) {
  return request({
    url: '/carbon/emissionPathLog',
    method: 'put',
    data: data
  })
}

// 删除减排路径记录
export function delEmissionPathLog(id) {
  return request({
    url: '/carbon/emissionPathLog/' + id,
    method: 'delete'
  })
}

// 导出减排路径记录
export function exportEmissionPathLog(query) {
  return request({
    url: '/carbon/emissionPathLog/export',
    method: 'get',
    params: query
  })
}